<?php
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
$this->title = $exception->statusCode." Error";
?>
<div class="row">
    <div class="box-holder col-md-4 col-sm-4 col-md-offset-4 col-sm-offset-4">
        <div class="error-container">
            <!--<?php echo $exception->statusCode;?> -->
            <?php if ($exception->statusCode == "404") {?>
              <div class="error-code">
                  <strong><i class="fa fa-frown-o"></i> 404</strong>
              </div>
              <div class="error-details">
                  <h4>
                  <?=\Yii::t('error', 'Oops, You\'re lost.')?>
                  </h4>
                  <p>
                    <?=\Yii::t('error', 'We can not find the page you\'re looking for. Is there a typo in the url? Or try the search bar below.')?>
                  </p>
                  <form action="./" class="form">
                    <div class="input-group">
                      <input type="text" class="form-control" placeholder="<?=\Yii::t('error', 'Search...')?>">
                      <span class="input-group-btn">
                        <button class="btn btn-danger" type="button">
                            <i class="fa fa-search"></i>
                        </button>
                      </span>
                    </div><!-- /input-group -->
                </form>
              </div>
            <?php } elseif ($exception->statusCode == "500") {?>
              <div class="error-code">
                  <strong><i class="fa fa-server"></i> 500</strong>
              </div>
              <div class="error-details">
                <h4>
                  <?=\Yii::t('error', 'There was a problem serving the requested page.')?>                 
                </h4>
                <p><strong><?=\Yii::t('error', 'What should I do:')?></strong></p>
                <ul class="list-unstyled">
                    <li>
                        <i class="icon-li fa fa-check-square-o"></i>
                         <?=\Yii::t('error', 'you can try refreshing the page, the problem may be temporary')?>
                    </li>
                    <li>
                        <i class="icon-li fa fa-check-square-o"></i>
                        <?=\Yii::t('error', 'if you entered the url by hand, double check that it is correct')?>
                    </li>
                    <li>
                        <i class="icon-li fa fa-check-square-o"></i>
                        <?=\Yii::t('error', 'Nothing! we\'ve been notified of the problem and will do our best to make sure it doesn\'t happen again!')?>
                    </li>
                </ul>
              </div>
            <?php } else {?>
              <div class="error-code">
                  <strong><i class="fa fa-bomb"></i> <?= $exception->statusCode; ?></strong>
              </div>
              <div class="error-details">
                <h4>
                  <?=\Yii::t('error', ' God, there are something wrong!')?>
                </h4>
                <p><strong><?=\Yii::t('error', 'What should I do:')?></strong></p>
                <ul class="list-unstyled">
                    <li>
                        <i class="icon-li fa fa-check-square-o"></i>
                        <?=\Yii::t('error', 'you can try refreshing the page, the problem may be temporary')?>
                    </li>
                    <li>
                        <i class="icon-li fa fa-check-square-o"></i>
                        <?=\Yii::t('error', 'if you entered the url by hand, double check that it is correct')?>
                    </li>
                    <li>
                        <i class="icon-li fa fa-check-square-o"></i>
                        <?=\Yii::t('error', 'Nothing! we\'ve been notified of the problem and will do our best to make sure it doesn\'t happen again!')?> 
                    </li>
                </ul>
              </div>
            <?php }?>
            <hr>
            <div class="clearfix">
              <a class="btn btn-default btn-sm pull-left" href="../<?= Url::to('home/dashboard');?>">
                <i class="fa fa-chevron-circle-left"></i>
                <?=\Yii::t('error', 'Go Home')?>
              </a>
              <a class="btn btn-danger btn-sm pull-right" href="<?= Yii::$app->request->referrer;?>">
                <i class="fa fa-chevron-circle-left"></i>
                <?=\Yii::t('error', 'Previous')?>               
              </a>
            </div>
        </div>
    </div>
</div>
